from driver import GPIO
import utime as time


#实例化一个gpio对象
led2=GPIO()
led3=GPIO()
led2.open("MQTT_LED")
led3.open("NET_LED")
while True:
    #LED2亮，LED3灭
    led2.write(1)
    led3.write(0)
    print('led2')
    time.sleep(1)
    #LED2灭，LED3亮
    led2.write(0)
    led3.write(1)
    print('led3')
    time.sleep(1)    
